package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Fibonaccci_Series {

	
	static int first=0;
	static int second=1;
	static int next;
	public static void main(String[] args) {
		
		System.out.println("Enter the number for till u want to generate the fibonacci series");
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		
		for(int i=0;i<n;i++)
		{
			if(i<=1)
			{
				next=i;
			}
			else
			{
				next=first+second;
				first=second;
				second=next;
				
			}
			
			System.out.println(next);
		}
		

	}

}
